package process.ast;

import java.util.Vector;
import process.visitor.Visitor;

public class EndState implements Node {
	private String id;
	private Vector<BeginState> beginStates = new Vector<BeginState>();

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Vector<BeginState> getBeginStates() {
		return beginStates;
	}

	public void setBeginStates(Vector<BeginState> beginStates) {
		this.beginStates = beginStates;
	}

	public EndState(String id) {
		super();
		this.id = id;
	}

	public void setBeginState(BeginState beginState) {
		beginStates.add(beginState);
	}

	public void accept(Visitor visitor) {
		visitor.visit(this);
	}
}
